
module("NetWork.Action.CreateAllianceSmAction ", package.seeall)

local NetCmdActionBase = require("NetWork.Action").NetCmdActionBase

CreateAllianceSmAction = NetCmdActionBase:new()

function CreateAllianceSmAction:Action(bytes)
    local CreateAllianceSm = require("Protol.groupMessage_pb").CreateAllianceSm()
    CreateAllianceSm:ParseFromString(bytes)

    if CreateAllianceSm.code ~= 0 then
        local UIWinMgr = require("UI.UIWinMgr").UIWinMgr
        UIWinMgr:OpenErrorNotice(CreateAllianceSm.code)
        return
    end
    local ClubModule = require("Module.ClubModule").ClubModule
    ClubModule.CreateAllianceSm(CreateAllianceSm)
end

require("NetWork.NetCmdSet").CmdSet[2010] = CreateAllianceSmAction --注册处理对象